#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm run lint --max-warnings=0
if [ $? -ne 0 ]; then
  echo "Linting failed. Commit aborted."
  exit 1
fi

pnpm run type-check
if [ $? -ne 0 ]; then
  echo "Type checking failed. Commit aborted."
  exit 1
fi